package com.webanovare.model;

import java.util.List;

/**
 * @author daniel based on hajo's IDAO
 */
public interface IDAO<T, K> {

    public T add(T t);

    public void removeWithId(K id);

    public void remove(T t);
    
    public void update(T t);

    public T find(K id);

    public List<T> getAll();

    public List<T> getAllOrderBy(String column, boolean asc);
    
    public int getCount();
}
